package cn.xxd.dao;

import cn.xxd.entity.OrdersItems;
import cn.xxd.entity.XxdOrder;
import cn.xxd.entity.XxdOrderItem;
import cn.xxd.entity.XxdOrderTrade;

import java.util.List;

public interface OrderDao {

    int save(XxdOrder order);

    int saveOrderItem(XxdOrderItem xxdOrderItem);

    XxdOrder queryOrder(String id);

    public List<OrdersItems> queryOrdersItems(String userId, String payType);

    int modifyPayTye(Integer type, String orderId);

    int saveTrade(XxdOrderTrade xxdOrderTrade);

    int delOrder(String id);

    int deleteOrderItems(String id);
}
